<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Iden\Model;
use Think\Model;

/**
 * 身份认证模型
 * @author 麦当苗儿 <zuojiazi@vip.qq.com>
 */

class IdentifyLogModel extends Model {


    /**
     * 增加身份认证记录
     */
    public function addIden($log_array) {
        // var_dump($log_array);exit;
        // var_dump($log_array);

        $res = $this->add($log_array);
        // var_dump($res);exit;
        return $res;

    }
    /**
     * 修改身份认证记录
     */
    public function saveIden($condition,$data) {
        $res = $this->where($condition)->save($data);
        // var_dump($res);exit;
        return $res;

    }
    /**
     * 查询单条信息
     */
    public function selectIden($condition,$field='*') {

        $res = $this->where($condition)->field($field)->find();
        return $res;

    }


}
